package com.diamond.bo;

import java.io.Serializable;

import com.diamond.util.DiamondUtil;


public class DiamondBO implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3941493013047036451L;
	private Long diamondId;
	private String batch;
	private Double weight;
	private String weightFomat;
	private String pic;
	private String pic1;
	private Double supPrice;
	private Double midPrice;
	private Double buyPrice;
	private Double spePrice;
	private String supPriceFomat;
	private String midPriceFomat;
	private String buyPriceFomat;
	private String spePriceFomat;
	private String shape;
	private String color;
	private String clarity;
	private String finalCut;
	private String polish;
	private String symmetry;
	private String cutAppraisal;
	private String polishAppraisal;
	private String symmetryAppraisal;
	private String fluor;
	private String reportNo;
	private String lab;
	private String certificateLink;
	private String appraisalDate;
	private String totalDepth;
	private String tableWidth;
	private String crownHeight;
	private String pavilionDepth;
	private String girdleThickness;
	private String culet;
	private String comments;
	private String HR;
	private String supplierName;
	public Long getDiamondId() {
		return diamondId;
	}
	public void setDiamondId(Long diamondId) {
		this.diamondId = diamondId;
	}
	public String getBatch() {
		return batch;
	}
	public void setBatch(String batch) {
		this.batch = batch;
	}
	public Double getWeight() {
		return weight;
	}
	
	public String getWeightFomat() {
		return DiamondUtil.WeightFormat(weight);
	}
	public void setWeight(Double weight) {
		this.weight = weight;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getPic1() {
		return pic1;
	}
	public void setPic1(String pic1) {
		this.pic1 = pic1;
	}
	public Double getSupPrice() {
		return supPrice;
	}
	public void setSupPrice(Double supPrice) {
		this.supPrice = supPrice;
	}
	public Double getMidPrice() {
		return midPrice;
	}
	public void setMidPrice(Double midPrice) {
		this.midPrice = midPrice;
	}
	public Double getBuyPrice() {
		return buyPrice;
	}
	public void setBuyPrice(Double buyPrice) {
		this.buyPrice = buyPrice;
	}
	public Double getSpePrice() {
		return spePrice;
	}
	public void setSpePrice(Double spePrice) {
		this.spePrice = spePrice;
	}
	
	public String getSupPriceFomat() {
		return DiamondUtil.DoubleFormat(supPrice);
	}
	public String getMidPriceFomat() {
		return DiamondUtil.DoubleFormat(midPrice);
	}
	public String getBuyPriceFomat() {
		return DiamondUtil.DoubleFormat(buyPrice);
	}
	public String getSpePriceFomat() {
		return DiamondUtil.DoubleFormat(spePrice);
	}
	public String getShape() {
		return shape;
	}
	public void setShape(String shape) {
		this.shape = shape;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public String getClarity() {
		return clarity;
	}
	public void setClarity(String clarity) {
		this.clarity = clarity;
	}
	public String getFinalCut() {
		if("excellent".equalsIgnoreCase(finalCut))return "EX";
		if("very good".equalsIgnoreCase(finalCut))return "VG";
		if("good".equalsIgnoreCase(finalCut))return "G";
		if("fair".equalsIgnoreCase(finalCut))return "F";
		return finalCut;
	}
	public void setFinalCut(String finalCut) {
		this.finalCut = finalCut;
	}
	public String getPolish() {
		if("excellent".equalsIgnoreCase(polish))return "EX";
		if("very good".equalsIgnoreCase(polish))return "VG";
		if("good".equalsIgnoreCase(polish))return "G";
		if("fair".equalsIgnoreCase(polish))return "F";
		return polish;
	}
	public void setPolish(String polish) {
		this.polish = polish;
	}
	public String getSymmetry() {
		if("excellent".equalsIgnoreCase(symmetry))return "EX";
		if("very good".equalsIgnoreCase(symmetry))return "VG";
		if("good".equalsIgnoreCase(symmetry))return "G";
		if("fair".equalsIgnoreCase(symmetry))return "F";
		return symmetry;
	}
	public void setSymmetry(String symmetry) {
		this.symmetry = symmetry;
	}
	public String getCutAppraisal() {
		return cutAppraisal;
	}
	public void setCutAppraisal(String cutAppraisal) {
		this.cutAppraisal = cutAppraisal;
	}
	public String getPolishAppraisal() {
		return polishAppraisal;
	}
	public void setPolishAppraisal(String polishAppraisal) {
		this.polishAppraisal = polishAppraisal;
	}
	public String getSymmetryAppraisal() {
		return symmetryAppraisal;
	}
	public void setSymmetryAppraisal(String symmetryAppraisal) {
		this.symmetryAppraisal = symmetryAppraisal;
	}
	public String getFluor() {
		return fluor;
	}
	public void setFluor(String fluor) {
		this.fluor = fluor;
	}
	public String getReportNo() {
		return reportNo;
	}
	public void setReportNo(String reportNo) {
		this.reportNo = reportNo;
	}
	public String getLab() {
		return lab;
	}
	public void setLab(String lab) {
		this.lab = lab;
	}
	public String getCertificateLink() {
		return certificateLink;
	}
	public void setCertificateLink(String certificateLink) {
		this.certificateLink = certificateLink;
	}
	public String getAppraisalDate() {
		return appraisalDate;
	}
	public void setAppraisalDate(String appraisalDate) {
		this.appraisalDate = appraisalDate;
	}
	public String getTotalDepth() {
		return totalDepth;
	}
	public void setTotalDepth(String totalDepth) {
		this.totalDepth = totalDepth;
	}
	public String getTableWidth() {
		return tableWidth;
	}
	public void setTableWidth(String tableWidth) {
		this.tableWidth = tableWidth;
	}
	public String getCrownHeight() {
		return crownHeight;
	}
	public void setCrownHeight(String crownHeight) {
		this.crownHeight = crownHeight;
	}
	public String getPavilionDepth() {
		return pavilionDepth;
	}
	public void setPavilionDepth(String pavilionDepth) {
		this.pavilionDepth = pavilionDepth;
	}
	public String getGirdleThickness() {
		return girdleThickness;
	}
	public void setGirdleThickness(String girdleThickness) {
		this.girdleThickness = girdleThickness;
	}
	public String getCulet() {
		return culet;
	}
	public void setCulet(String culet) {
		this.culet = culet;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public String getHR() {
		return HR;
	}
	public void setHR(String hr) {
		HR = hr;
	}
	public String getSupplierName() {
		return supplierName;
	}
	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

}
